param([switch]$on, [switch]$off)

if ($on) {
  npm config set proxy 127.0.0.1:10809
  npm config set https-proxy 127.0.0.1:10809
  Write-Host "npm proxy on!"
}
elseif ($off) {
  npm config delete proxy
  npm config delete https-proxy
  Write-Host "npm proxy off!"
}
else {
  Write-Host "usage:"
  Write-Host "  npm_proxy -on"
  Write-Host "  npm_proxy -off"
}